package com.hzqy.persistence.dao.epg;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.SysAreaStreetVo;
import com.hzqy.web.vo.activity.ActivityVoteUserVo;
import com.hzqy.web.vo.epg.AcIntegralVo;

@Repository
public class AcIntegralDao  extends PersistenceDao<AcIntegralVo, Integer>{
	public Integer selectIntegralCount(AcIntegralVo acIntegralVo){
		return getSqlSession().selectOne(this.getNamespace()+"selectIntegralCount",acIntegralVo);
	}
	public List<AcIntegralVo> selectIntegral(Map map){
		return getSqlSession().selectList(this.getNamespace() + "selectIntegral",map);
	}
	public List<SysAreaStreetVo> selectArea(Map map){
		return getSqlSession().selectList(this.getNamespace() + "selectArea",map);
	}
	public Integer selectCommunityIntegralCount(AcIntegralVo acIntegralVo){
		return getSqlSession().selectOne(this.getNamespace()+"selectCommunityIntegralCount",acIntegralVo);
	}
	public List<AcIntegralVo> selectCommunityIntegral(Map map){
		return getSqlSession().selectList(this.getNamespace() + "selectCommunityIntegral",map);
	}
	public String selectById(String f_sas_id) {
		return getSqlSession().selectOne(this.getNamespace()+"selectById", f_sas_id);
		
	}
	public int insertACLikeVote(ActivityVoteUserVo acVoteUserVo) {
		return getSqlSession().insert(this.getNamespace()+"insertACLikeVote", acVoteUserVo);
	}
}
